#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
extern char** environ;
int main(int argc,char* argv[],char* envp[])
{
//for(int i=0;environ[i];i++)
//{
/*char *hello=getenv("HELLO");
if(hello==NULL)
{
  perror("getenv fail");
}
ielse
{
  printf("%s\n",hello);
}*/
//}
for(int i=0;argv[i];i++)
{
printf("%s\n",argv[i]);
}
if(argc!=2)
{
  printf("Please enter ./prac [-a][-b][-c]\n");
}
if(strcmp(argv[1],"-a")==0)
{
  printf("This is a way to open the computer\n");
}
else if(strcmp(argv[1],"-b")==0)
{
  printf("This is a way to close the computer\n");
}
else if(strcmp(argv[1],"-c")==0)
{
printf("This is the way to exit\n");
}
else
{
printf("It is in new\n");
}




return 0;
}
